Session 5: Quarto

In this session, we introduce Quarto, an open-source publishing system for creating reproducible data science reports, presentations, and websites. Quarto allows you to combine code, results, and narrative in a single document and render professional outputs directly from your analysis.

Unlike traditional notebooks or word-processor-based reporting, Quarto is designed to support reproducibility, clarity, and collaboration. Analyses written in Quarto can be rerun from start to finish, ensuring that results are transparent and verifiable. Quarto also supports multiple programming languages including R, Python, and Julia, making it well suited for both individual work and interdisciplinary collaboration.

Book chapter reading. We will learn about Quarto by reading Chapter 28 in R for Data Science. You are not required to complete any exercises this week (though if you find working in Quarto a bit confusing, it may be a good idea to work through the exercises in the chapter).

Tutorials. There is no r4ds.tutorials Quarto tutorial. Instead, we will use Quarto’s own web tutorials. There are three, rather short, parts; Hello, Quarto, Computations, and Authoring. These tutorials are not interactive, but you can follow along step by step in your own environment by downloading the .qmd file for each tutorial.

Again, we are not asking you to complete any exercises, and you do not need to show your work from the tutorials. Instead, your task is to create a report by populating a .qmd document and rendering it as an HTML file. More details are provided below.

One-on-one meetings. Individual meetings are no longer a mandatory requirement, but as always, you can schedule a meeting with Hasse at any time.

Wednesday group meeting. We will meet next on Wednesday, January 21, and during this meeting you will each have 10–15 minutes to present your Quarto report. You do not need to send anything to Hasse beforehand.

Create a report. This is the most important part of the Quarto training. We want you to use real Marcus data and create a report that includes real-world, meaningful analyses. If using real data is not possible for some reason, it is acceptable to work with one of the datasets used during the training (such as palmerpenguins or babynames). While the main goal is to familiarize you with creating reports for your Marcus work, we also want to ensure that you gain exposure to, and practice with, the various useful features of Quarto and HTML rendering. Therefore, we have put together a list of elements that we want you to include in your report. Note that this is not an exhaustive list, and you should add headers, text, code, and output as you see fit to generate a complete report.